package com.chen.Dome2reflect;

public class ReflectDome4 {
    public static void main(String[] args) throws Exception{
        //目标：使用反射设计一个简单框架，反射是框架的通用技术
        Dog dog = new Dog("小花", 3, "北京");
        SaveObjectFrame.saveObject(dog);

        System.out.println("======================");
        Student student = new Student("小明", 18, "河南");
        SaveObjectFrame.saveObject(student);

        System.out.println("=======================");
        Teacher teacher = new Teacher("陈老师",40,'男',3000);
        SaveObjectFrame.saveObject(teacher);
    }
}
